package com.zch.jh.service.dto;

import java.io.Serializable;

/**
 * A DTO for the {@link com.zch.jh.domain.ReceiveAddr} entity.
 */
public class ReceiveAddrDTO implements Serializable {
    
    private Long id;

    private String receiveName;

    private String receivePhone;

    private String receiveAddr;

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public String getReceiveAddr() {
        return receiveAddr;
    }

    public void setReceiveAddr(String receiveAddr) {
        this.receiveAddr = receiveAddr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ReceiveAddrDTO)) {
            return false;
        }

        return id != null && id.equals(((ReceiveAddrDTO) o).id);
    }

    @Override
    public int hashCode() {
        return 31;
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "ReceiveAddrDTO{" +
            "id=" + getId() +
            ", receiveName='" + getReceiveName() + "'" +
            ", receivePhone='" + getReceivePhone() + "'" +
            ", receiveAddr='" + getReceiveAddr() + "'" +
            "}";
    }
}
